Matrix4x4.[row, column]
Name | Type |
---|---|
[row, column] | number |
Description
Access element at [row, column].
Example
Both row and column must be from 1 to 4 inclusive. A matrix is 4x4 array of numbers, and you can access the individual elements using this function.
local mtrx = Matrix4x4.identity;
Debug.Log(mrtx[2,2]) -- prints 1
Debug.Log(mrtx[4,1]) -- prints 0